import myaxios from "../MyAxios";
//引入路径前缀
import BASEURL from "../BaseUrl";
const { BaseURL } = BASEURL;

const priceApi = {
  /**
   * 查询价格
   * @returns Promise
   */
  pueryPrice() {
    return myaxios.post(BaseURL + "/v1/query_price");
  },

  /**
   * 修改价格
   * @param {Object} params {price1:x,price2:x,price3:x,price4:x}
   * @returns Promise
   */
  setPrice(params) {
    return myaxios.post(BaseURL + "/v1/set_price", params);
  },
};

export default priceApi;
